﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using webapp4U;
using webapp4U.BOL;

public partial class Page_Products_ProceedOrder : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["ShoppingCart"] != null)
        {
            List<ShoppingCart> ListShopCart = new List<ShoppingCart>();
            ListShopCart = (List<ShoppingCart>)Session["ShoppingCart"];
            GridViewItem.DataSource = ListShopCart;
            GridViewItem.DataBind();
        }

    }

    protected Double GetTotalShoppingCart()
    {

        double total = 0;
        List<ShoppingCart> ListShopCart = new List<ShoppingCart>();
        if (Session["ShoppingCart"] != null)
        {
            ListShopCart = (List<ShoppingCart>)Session["ShoppingCart"];
            total = ShoppingCart.GetTotalShoppingCart(ListShopCart);
        }

        return total;
    }
    protected void btDelete_Click(object sender, EventArgs e)
    {


    }

    protected void btKeepOrder_Click(object sender, EventArgs e)
    {

    }
}